<?php
class Admin_IndexController extends Apps_Controller_Action_Admin {
	public function indexAction() {
	    //Dashboard
        $q = $this->_dbAdapter
                  ->select()
                  ->from('product');

        $source = new OeZend_Widget_Grid_Source_ZendDbSelect($q);

        $grid = new Grid_Product_Product('product-grid');
        $grid->setCaption('Danh Sach San Pham');
        $grid->setSource($source);
        $grid->setView(new OeZend_Widget_Grid_View());

        //Zend_Debug::dump($grid);
        $this->view->grid = $grid;
	}
}